package com.cf.controller;

import com.cf.id.SnowflakeId;
import com.cf.vo.ResponseVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * game-server-ApiConnectionController
 *
 * @author <a href="2428922347@qq.com">Zhu mingming</a>
 * @info
 * @since 2018/6/15 下午 02:30
 */
@RestController
@RequestMapping("/api/v1.0/connection")
public class ApiConnectionController {

    @Autowired
    private SnowflakeId id;


    @ResponseBody
    @RequestMapping
    public ResponseVo<Boolean> apply(BindingResult bindingResult) {
        return ResponseVo.success(id.nextId(), "信息提交成功，请等待客服联系");
    }

}
